package com.shuwen.gcdj.mapper.mysql.Statistic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuwen.gcdj.bean.equipmentMaintenance.request.EquipmentMaintainReportReq;
import com.shuwen.gcdj.bean.workingConditions.request.StatisticConditionReq;
import com.shuwen.gcdj.bean.workingConditions.response.StatisticsDeviceStatusResp;
import com.shuwen.gcdj.entity.statistics.StatisticsDevicestatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author XYC
 */
@Mapper
public interface StatisticsDeviceStatusMapper extends BaseMapper<StatisticsDevicestatus> {

    /**
     * 获取指定日期中最新的数据
     * @return
     */
    StatisticsDeviceStatusResp getResult(@Param("req") StatisticConditionReq req);

    /**
     * 获取指定日期中的数据
     * @return
     */
    List<StatisticsDeviceStatusResp> getListResult(@Param("req") EquipmentMaintainReportReq req);

}
